<div class="row">
  <div class="col-xs-12">
    <!-- PAGE CONTENT BEGINS -->
    <div class="center">
      <div class="tabbable">
        <ul class="nav nav-tabs" id="myTab">
          <%@users.each do |item|%>
          <li class="active">
            <a  href="<%= admin_gps_show_path(user_id:item.id) %>">
              <%=item.name.present? ? item.name: 'user_' + item.id.to_s  %>
            </a>
          </li>
          <%end%>
        </ul>
        <div class="row">
          <div id="admin_users">
            <%= grid(@orders, show_filters: :when_filtered) do |g|
              g.column name: "#{t 'activerecord.attributes.defaults.id'}", attribute: 'id'
              g.column name: "#{t 'activerecord.attributes.order.sr'}", attribute: 'sr'
              g.column name: "#{t 'activerecord.attributes.order.phone'}", attribute: 'phone'
              g.column name: "#{t 'activerecord.attributes.order.name'}", attribute: 'name'
              g.column name: "#{t 'activerecord.attributes.order.order_date'}", attribute: 'order_date'
              g.column name: "#{t 'activerecord.attributes.order.is_in_release'}", attribute: 'is_in_release' do |task|
                  {'0'=>'有保固','1'=>'过保固'}[task.is_in_release.to_s]
              end
              g.column name: "#{t 'activerecord.attributes.order.advise'}", attribute: 'advise'
              g.column name: "#{t 'activerecord.attributes.order.total_price'}", attribute: 'total_price'

              g.column do |c|
                ddd(c.id)
              end
            end %>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

